// void, Obj This 

Building bld;
Settlement this;

//pr("PAY BARBARIAN dziala");
bld = This.AsBuilding();
this = bld.settlement;
//pr(cmdcost_gold);
if (bld.IsValid) 
{
	EnvWriteInt(.player, "PayBarbarianCount", EnvReadInt(.player, "PayBarbarianCount") + cmdcost_gold);
	bld.PlaySound("data/Sound Entities/TavernPayBarbarian.xml");
}